from screen import BaseScreen, BaseScreenWidget
from list.widget import ListWidget
import gtk, pango, pygtk, time, threading, gobject, traceback
import statemachine

def CreateListScreen(app, create_header_cb):
  screen = BaseScreen(app)
  list_height = 480
  header = create_header_cb(screen)
  screen.Add(header)
  list_height -= header.rect.height
  list_y = header.rect.height
  list_widget = ListWidget(0, list_y, 800, list_height)
  screen.Add(list_widget)
  return screen, list_widget


